<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>对象</title>
</head>
<body>
    <script>
        //内置对象
        var dateobj = new Date()
        console.log(dateobj.getFullYear())
        console.log(dateobj.getMonth())
        console.log(dateobj.getDate())
        console.log(dateobj.getHours())
        console.log(dateobj.getMinutes())
        console.log(dateobj.getSeconds())

        //Math类

    </script>
</body>
</html>